/*
 *  Copyright (C) 2007 Neil Jagdish Patel <njpatel@gmail.com>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA.
 *
 *  Author : Neil Jagdish Patel <njpatel@gmail.com>
*/

#include <gtk/gtk.h>

#include "bling-spinner.h"

int
main (int argc, char **argv)
{
	GtkWidget *window;
	GtkWidget *hbox;
	GtkWidget *spinner;
	GtkWidget *entry;

	gtk_init (&argc, &argv);

	window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
	
	gtk_container_set_border_width(GTK_CONTAINER(window), 10);
	hbox = gtk_hbox_new(FALSE, 4);
	entry = gtk_entry_new();
	spinner = bling_spinner_new ();
	
	gtk_box_pack_start (GTK_BOX(hbox), entry, TRUE, TRUE, 0);
	gtk_box_pack_start (GTK_BOX(hbox), spinner, FALSE, TRUE, 0);
	gtk_container_add (GTK_CONTAINER (window), hbox);

	g_signal_connect (window, "destroy",
	                  G_CALLBACK (gtk_main_quit), NULL);

	gtk_widget_show_all (spinner);
	gtk_widget_show_all (window);

	bling_spinner_start (BLING_SPINNER (spinner));

	gtk_main ();
}
